package com.example.ccj.b.c.ui.install;


import com.example.ccj.b.c.ui.BoMaOnClickListener;

public class InstallJumpAndBoMa extends InstallItem{
    public InstallJumpAndBoMa(String installName){
        this.installName = installName;
    }

    public InstallJumpAndBoMa(String installName, String beginText){
        this.installName = installName;
        this.beginText = beginText;
    }

    /**
     *
     * @param installName 设置名称
     * @param isSelect 是否选中
     * @param select 选择回调
     * @param boMaOnClickListener 拨码回调
     */
    public InstallJumpAndBoMa(String installName, boolean isSelect, JumpOnClickListener select, BoMaOnClickListener boMaOnClickListener){
        this.installName = installName;
        this.isSelect = isSelect;
        this.select = select;
        this.boMaOnClickListener = boMaOnClickListener;
    }

    private JumpOnClickListener select;//点击选择回调
    private String beginText;//初始文字
    private boolean isSelect;
    /**
     * 改变状态后的回调
     */
    private BoMaOnClickListener boMaOnClickListener;


    public BoMaOnClickListener getBoMaOnClickListener() {
        return boMaOnClickListener;
    }

    public void setBoMaOnClickListener(BoMaOnClickListener boMaOnClickListener) {
        this.boMaOnClickListener = boMaOnClickListener;
    }

    @Override
    public int getType() {
        return TYPE_JUMP_AND_BOMA;
    }


    public JumpOnClickListener getSelect() {
        return select;
    }

    public void setSelect(JumpOnClickListener select) {
        this.select = select;
    }

    public String getBeginText() {
        return beginText;
    }

    public void setBeginText(String beginText) {
        this.beginText = beginText;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }
}
